home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds228.c < prev   
Encoding:
C/C++ Source or Header  |  1993-07-08  |  415 b   |  22 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS228 : 描画モ-ド
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned char *GDS_append(unsigned char *wp,unsigned int size);
  12.  
  13. void GDS_draw_mode(unsigned char *wp,unsigned char mode) {
  14.  
  15.    wp=GDS_append(wp,8);
  16.    *(unsigned int *)(wp+0)=0x6000+1*32+6;
  17.    *(unsigned int *)(wp+2)=2;
  18.    *(unsigned int *)(wp+4)=2;
  19.    *(unsigned char *)(wp+6)=mode;
  20.    *(unsigned char *)(wp+7)=0;
  21. }
  22.